<{include file="app/header.tpl"}>

<ul class="topic-list loadimg" style="padding-top: 6px;">
    <{foreach from=$topics item="topic"}>
    <li class="li">
        <a href="/topic/detail/<{$topic.id}>" class="a" title="">
            <img src="<{$topic.image}>" class="img" alt="">
            <p class="bottom"><{$topic.title}></p>
            <p class="top" onclick="user_like('topic', <{$topic.id}>, this);return false;"><em class="<{if $topic.isLiked}>like-icon<{else}>nolike-icon<{/if}>"></em><span class="iCounts"><{$topic.countsLike}></span></p>
        </a>
    </li>
    <{/foreach}>
</ul>

<{include file="app/footer.tpl"}>
